package com.antler.smt.admin.mapper;

import com.antler.smt.entity.PurchaserChargeEntity;
import com.antler.smt.response.admin.GetPurchaserCashCouponListResp;
import com.antler.smt.response.admin.GetPurchaserListResp;
import com.github.pagehelper.Page;
import org.apache.catalina.LifecycleState;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PurchaserChargeInfoMapper {

    /**
     * 查询采购商充值记录列表
     *
     * @param memberId
     * @return
     */
    List<PurchaserChargeEntity> selectPurchaserChargeList(Long memberId);

    /**
     * 获取待审核的列表
     *
     * @return
     */
    Page<PurchaserChargeEntity> getWaitAuditList();

    /**
     * 获取充值总金额
     *
     * @param purchaserId
     * @return
     */
    Long getTotalMoney(Long purchaserId);

    /**
     *  获取最后一次审核的实体
     *
     * @param purchaserId
     * @return
     */
    Long getLastAuditResult(Long purchaserId);
}